package com.xtc.netty.protocol.http.model;

import com.xtc.netty.protocol.http.enums.Shopping;

/**
 * 订单信息
 *
 * @author Administrator
 */
public class Order {
    private long orderNumber;
    private Customer customer;
    private Address billTo;
    private Shopping shopping;
    private Address shipTo;
    private Float total;

    public long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Address getBillTo() {
        return billTo;
    }

    public void setBillTo(Address billTo) {
        this.billTo = billTo;
    }

    public Shopping getShopping() {
        return shopping;
    }

    public void setShopping(Shopping shopping) {
        this.shopping = shopping;
    }

    public Address getShipTo() {
        return shipTo;
    }

    public void setShipTo(Address shipTo) {
        this.shipTo = shipTo;
    }

    public Float getTotal() {
        return total;
    }

    public void setTotal(Float total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "[" + this.getCustomer().getFirstName() + this.getCustomer().getLastName() + "下了订单，总共花费：" + this.getTotal() + "]";
    }
}
